package org.linlinjava.litemall.wx.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.linlinjava.litemall.wx.vo.CartAddAccessoryVo;
import org.linlinjava.litemall.wx.vo.CartAddPropertyVo;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value="购物车添加商品请求类",description="购物车添加商品请求类")
public class CartAddVO {

	//添加到购物车时传递的参数
	@ApiModelProperty(value = "店铺id")
	@NotNull
	private Integer shopId;

	//添加到购物车时传递的参数
	@ApiModelProperty(value = "类型 商品｜套餐")
	@NotNull
	private Integer type;

	@ApiModelProperty(value = "商品id")
    private Integer goodsId;

	@ApiModelProperty(value = "商品id")
	private Integer packageId;

	@ApiModelProperty(value = "购买数量")
	@NotNull
	private Integer number;

	@ApiModelProperty(value = "辅料对象")
	private List<CartAddAccessoryVo> accessoryList;

	@ApiModelProperty(value = "属性列表")
	private List<CartAddPropertyVo> propertyList;
}
